//宠物相关接口
import axios from "axios";
// 获取宠物列表
export const getPetList = ()=>{
  return axios.get('/home/petinfo');
}

//获取发布量
export const getPublishSum = ()=>{
  return axios.get('/home/petsum')
}

//申请领养
export const getApply = (id)=>{
  return axios.post('/home/apply',{pet_id: id})
}

//发布领养的宠物
export const publishPetInfo = (data)=>{
  console.log(data)
  return axios.post('/home/addpetnote',data)
}